var webpack = require('webpack')

var _ = require('lodash');
var base = require('./webpack.base.config.js');

module.exports = _.merge(base, {
  plugins: base.plugins.concat([
    new webpack.optimize.UglifyJsPlugin({
      compress: {
        warnings: false
      },
      sourceMap: false
    }),
    new webpack.DefinePlugin({
      'process.env': {
        'NODE_ENV': JSON.stringify('production')
      }
    })
  ])
});
